<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>使用Vue的HTML模板</title>

    <script src="https://unpkg.com/vue@3.4.0"></script>
</head>

<body>
    <div id="app">
        <h1>{{ message }}</h1>
    </div>

    <script>
        const { createApp, ref } = Vue;
        const App = {
            setup() {
                const message = ref("Hello World from setup")
                return {
                    message
                }

            }
        }
        const vm = createApp(App).mount("#app")
    </script>

</body>

</html>